---
title: Blur In
date: 2024-05-23
description: An animated text component that blurs in the text.
author: nyxb
published: true
---

<ComponentPreview name="blur-in-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add blur-in
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/blur-in.tsx
```

<ComponentSource name="blur-in" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop      | Type   | Description                                    | Default                                                                                      |
| --------- | ------ | ---------------------------------------------- | -------------------------------------------------------------------------------------------- |
| className | string | The class name to be applied to the component  |                                                                                              |
| duration  | number | Durations (seconds) for the animation          | 1                                                                                            |
| word      | string | The word to be animated                        |                                                                                              |
| variant   | object | Custom animation variants for motion component | `hidden: { filter: "blur(10px)", opacity: 0 }, visible: { filter: "blur(0px)", opacity: 1 }` |
